﻿using System;
using System.Collections.Generic;
using GdNet.WebFramework.Domain.Repositories.System;
using GdNet.WebFramework.Domain.System;

namespace GdNet.Applications.DataGeneration.DataAssistants
{
    public static class TranslationAssistant
    {
        public static void GenerateSampleTranslations(ITranslationRepository translationRepository)
        {
            Console.WriteLine("Generating languages...");

            var translationVI = Translation.Factory.Create("languages.vietnamese", "vi", "Tieng Viet");
            var translationEN = Translation.Factory.Create("languages.english.us", "en", "English (US)");

            translationRepository.Save(new List<Translation> { translationVI, translationEN });
        }
    }
}
